<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<c:set var="pageIndex" value="${param.pageIndex}" />
<c:set var="language" value="${param.language}" scope="session"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>D-Magic</title>

<script type='text/javascript' src="${ctx}/extends/jquery-1.7.2.min.js"></script>
<script type="text/javascript" language="javascript">
	var pageIndex = "${pageIndex}";
    var language = "${language}";
    var ctx = "${ctx}";
    
    if(!language || !pageIndex) {
    	window.open("../web/index.jsp","_self");
    }
    
	function reinitIframe() {
		var iframe = document.getElementById("main_iframe");
		try {
			var bHeight = iframe.contentWindow.document.body.scrollHeight;
			var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
			var height = Math.max(bHeight, dHeight);
			iframe.height = bHeight;
		} catch (ex) {
		}
	}

	window.setInterval("reinitIframe()", 200);
</script>

<style type="text/css">
html {
	height: 100%;
	background-color:#000;
}

body {
	text-align: center;
	margin: 0;
	padding: 0;
	border: 0 none;
	height: 100%;
}

div#container {
	margin: 0 auto;
	border: 0 none;
	padding: 0;
	text-align: left;
	width: 1024px;
	height: 100%;
}

div#mainContent {
	margin: 0;
	padding: 0
}

</style>
</head>

<body onLoad="pageInit()">
	<div id="container">
		<div id="top">
			<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
				width="1024" height="125" id="nav_flash" align="middle">
				<param name="movie" value="res/nav/nav.swf" />
				<param name="quality" value="high" />
				<param name="bgcolor" value="#ffffff" />
				<param name="play" value="true" />
				<param name="loop" value="true" />
				<param name="wmode" value="window" />
				<param name="scale" value="showall" />
				<param name="menu" value="true" />
				<param name="devicefont" value="false" />
				<param name="salign" value="" />
				<param name="allowScriptAccess" value="*" />
				<!--[if !IE]>-->
				<object type="application/x-shockwave-flash" data="res/nav/nav.swf"
					width="1024" height="125">
					<param name="movie" value="res/nav/nav.swf" />
					<param name="quality" value="high" />
					<param name="bgcolor" value="#ffffff" />
					<param name="play" value="true" />
					<param name="loop" value="true" />
					<param name="wmode" value="window" />
					<param name="scale" value="showall" />
					<param name="menu" value="true" />
					<param name="devicefont" value="false" />
					<param name="salign" value="" />
					<param name="allowScriptAccess" value="*" />
					<!--<![endif]-->
					<a href="http://www.adobe.com/go/getflash"> <img
						src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
						alt="获得 Adobe Flash Player" />
					</a>
					<!--[if !IE]>-->
				</object>
				<!--<![endif]-->
			</object> 
		</div>
        <iframe id="main_iframe" name="main" frameborder="0" width="100%"
              height="500px" marginwidth="0" marginheight="0" scrolling="no"> </iframe>

	</div>
</body>
<script type="text/javascript" src="${ctx}/pages/web/main.js"></script>
</html>
